-- =====================================================================
-- {{{ s_tags
-- =====================================================================
tags_names = {"term", "work", "www", "pidgin", "skype", "vbox", "rdesk", "wine", "extra"}
default_layout = layouts[9] -- "maximized"

tags = {}
tags_named = {}
for s = 1, screen.count() do
  tags[s] = awful.tag.new(tags_names, s, default_layout)
  tags_named[s] = {}
  for i = 1, #tags_names do
    tags_named[s][tags_names[i]] = tags[s][i]
  end
end

for s = 1, screen.count() do
  awful.tag.setproperty(tags_named[s]['www'], 'layout', layouts_named['fair_horizontal'])
  awful.tag.setproperty(tags_named[s]['term'], 'layout', layouts_named['fair_horizontal'])
  awful.tag.setproperty(tags_named[s]['wine'], 'layout', layouts_named['floating'])
  awful.tag.setproperty(tags_named[s]['pidgin'], 'layout', layouts_named['tile_right'])
  awful.tag.setproperty(tags_named[s]['skype'], 'layout', layouts_named['tile_right'])
  awful.tag.setmwfact(0.2, tags_named[s]['pidgin'])
  awful.tag.setmwfact(0.2, tags_named[s]['skype'])
  awful.tag.setnmaster(2, tags_named[s]['skype'])
end
-- }}}
